﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Aandelendelen.Controls
{
	public partial class JavaScriptControl : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		public string Src
		{
			get;
			set;
		}

		protected override void Render(HtmlTextWriter writer)
		{
			writer.WriteBeginTag("script");
			writer.WriteAttribute("type", "text/javascript");
			if (string.IsNullOrEmpty(this.Src) == false)
				writer.WriteAttribute("src", this.Src);
			writer.Write(HtmlTextWriter.TagRightChar);
			writer.WriteEndTag("script");
		}
	}

}